package Test

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

type Product struct {
	global.GVA_MODEL
	Name        string  `json:"name" gorm:"comment:产品名称"`
	Description string  `json:"description" gorm:"comment:产品描述"`
	Price       float64 `json:"price" gorm:"comment:产品价格"`
	Stock       int     `json:"stock" gorm:"comment:库存数量"`
	Status      int     `json:"status" gorm:"default:1;comment:状态 1:上架 2:下架"`
}

func (Product) TableName() string {
	return "test_products"
}
